package com.util;

import java.net.URL;
import java.util.List;

import net.htmlparser.jericho.Element;
import net.htmlparser.jericho.HTMLElementName;
import net.htmlparser.jericho.Source;

public class Common {
	public List<Element> getAllUrl(String url){
		try {
			List<Element> link = null;
			
			Source source = null;
			source=new Source(new URL(url));
			source.fullSequentialParse();
			
			link=source.getAllElements(HTMLElementName.A);
			
			return link;
			
		} catch (Exception e) {
			return null;
		}
	}
}
